package zy4;

/**
 * 海鲜披萨类
 */
public class Seafood extends Pizza{
    private int kg;//克数

    public Seafood() {
    }

    public Seafood(String name, int price, int size, int kg) {
        super(name, price, size);
        this.setKg(kg);
    }

    public int getKg() {
        return kg;
    }

    public void setKg(int kg) {
        this.kg = kg;
    }

    @Override
    public void show() {
        System.out.println("名称:"+getName()+"\n价格:"+getPrice()+"元"+"\n大小:"+getSize()+"寸"
                +"\n培根克数:"+getKg());
    }
}
